import 'package:flutter_li_ke_jie/constant/app_constant.dart';

///app产品列表
class AppProduct {
  String searchValue="";
  String createBy="";
  String createTime="";
  String updateBy="";
  String updateTime="";
  String remark="";
  int productId=0;
  String name="";
  String logoUrl="";
  String note="";
  String label="";
  int minPrice=0;
  int maxPrice=0;
  String appleCount="";
  String successRate="";
  String dayRate="";
  int status=0;
  String productUrl="";
  String docking="";
  int price=0;
  int settlementMethod=0;
  int sort=0;
  int platform=0;
  int isVip=0;
  int abType=0;

  AppProduct(
      {
        this.searchValue="",
        this.createBy="",
        this.createTime="",
        this.updateBy="",
        this.updateTime="",
        this.remark="",
        this.productId=0,
        this.name="",
        this.logoUrl=zhanWeiPng,
        this.note="",
        this.label="",
        this.minPrice=0,
        this.maxPrice=0,
        this.appleCount="",
        this.successRate="",
        this.dayRate="",
        this.status=0,
        this.productUrl="",
        this.docking="",
        this.price=0,
        this.settlementMethod=0,
        this.sort=0,
        this.platform=0,
        this.isVip=0,
        this.abType=0
      });

  AppProduct.fromJson(Map<String, dynamic> json) {
    searchValue = json['searchValue']??"";
    createBy = json['createBy']??"";
    createTime = json['createTime']??"";
    updateBy = json['updateBy']??"";
    updateTime = json['updateTime']??"";
    remark = json['remark']??"";
    productId = json['productId']??"";
    name = json['name']??"";
    logoUrl = json['logoUrl']??zhanWeiPng;
    note = json['note']??"";
    label = json['label']??"";
    minPrice = json['minPrice']??"";
    maxPrice = json['maxPrice']??"";
    appleCount = json['appleCount']??"";
    successRate = json['successRate']??"";
    dayRate = json['dayRate']??"";
    status = json['status']??0;
    productUrl = json['productUrl']??"";
    docking = json['docking']??"";
    price = json['price']??0;
    settlementMethod = json['settlementMethod']??0;
    sort = json['sort']??0;
    platform = json['platform']??0;
    isVip = json['isVip']??0;
    abType = json['abType']??0;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['searchValue'] = this.searchValue;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['remark'] = this.remark;
    data['productId'] = this.productId;
    data['name'] = this.name;
    data['logoUrl'] = this.logoUrl;
    data['note'] = this.note;
    data['label'] = this.label;
    data['minPrice'] = this.minPrice;
    data['maxPrice'] = this.maxPrice;
    data['appleCount'] = this.appleCount;
    data['successRate'] = this.successRate;
    data['dayRate'] = this.dayRate;
    data['status'] = this.status;
    data['productUrl'] = this.productUrl;
    data['docking'] = this.docking;
    data['price'] = this.price;
    data['settlementMethod'] = this.settlementMethod;
    data['sort'] = this.sort;
    data['platform'] = this.platform;
    data['isVip'] = this.isVip;
    data['abType'] = this.abType;
    return data;
  }
}
